
// 假数据滚动
const data = [
    { date: '2025-06-01 10:30', desc: '购买《红岩》', amt: -59.0 },
    { date: '2025-06-01 09:15', desc: '充值', amt: +100.0 },
    { date: '2025-05-31 20:00', desc: '购买《茶花女》', amt: -35.0 },
    { date: '2025-05-30 14:20', desc: '购买《了不起的盖茨比》', amt: -32.8 },
    { date: '2025-05-29 18:45', desc: '充值', amt: +200.0 },
    { date: '2025-05-28 12:00', desc: '购买《骆驼祥子》', amt: -55.0 }
];

document.getElementById('list').innerHTML = data.map(item => `
      <div class="item">
        <span class="date">${item.date}</span>
        <span class="desc">${item.desc}</span>
        <span class="amt">${item.amt > 0 ? '+' : ''}￥${item.amt.toFixed(2)}</span>
      </div>
    `).join('');
